<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

	<head>

		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

        <!-- 移动端视口说明 -->
		<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">

		<title><?php echo C('WEB_TITLE');?></title>

		<link rel="stylesheet" href="/Public/css/common.css"/>

		<link rel="stylesheet" href="/Public/js/layui/css/layui.css"/>

        <link rel="stylesheet prefetch" href="/Public/js/photoswipe/photoswipe.css">

        <link rel="stylesheet prefetch" href="/Public/js/photoswipe/default-skin/default-skin.css">

        <link rel="stylesheet" href="/Public/mobile/css/mobile-terminal.css"/>

        <link rel="stylesheet" href="<?php echo C('MOBILE_ICON_HTTP');?>"/>

		<link rel="stylesheet" href="/Public/js/mobileSelect/mobileSelect.css">

		<link rel="stylesheet" href="/Public/js/mobile-date/mobile-date.css">

		<?php if($is_app == 1): ?><link rel="stylesheet" href="/Public/mobile/css/app.css"/><?php endif; ?>

		<link rel="stylesheet" href="/Public/js/jeDate/skin/jedate.css">

		<script type="text/javascript" >

			const moduleName = "<?php echo (MODULE_NAME); ?>";

		</script>

		<script type="text/javascript" src="/Public/js/jquery-1.9.1.min.js"></script>

		<script type="text/javascript" src="/Public/js/cookie/jquery.cookie.js"></script>

		<script type="text/javascript" src="/Public/js/lang/<?php echo (getStrToLower(cookie('think_language'))); ?>.js"></script>

		<script type="text/javascript" src="/Public/js/layer/layer.js"></script>

		<script type="text/javascript" src="/Public/js/layui/layui.js"></script>

		<!-- uni 的 SDK -->
		<script type="text/javascript" src="/Public/js/uni.webview.1.5.2.js"></script>

		<script type="text/javascript" src="/Public/js/WeChat/wechatglobal.js"></script>

		<script type="text/javascript" src="/Public/js/WeChat/wechatupload.js"></script>

		<script type="text/javascript" src="/Public/js/photoswipe/photoswipe.min.js"></script>

		<script type="text/javascript" src="/Public/js/photoswipe/photoswipe-ui-default.min.js"></script>

        <script type="text/javascript" src="/Public/js/WeChat/iscroll.js"></script>

		<script type="text/javascript" src="/Public/js/mobile-date/mobile-date.js"></script>

		<script type="text/javascript" src="/Public/js/jeDate/src/jedate.js"></script>

		<script type="text/javascript" src="/Public/js/feeldesk-slide.js"></script>

		<script type="text/javascript" src='/Public/js/socket.io.js'></script>

		<script type="text/javascript">

			var socketUrl = "<?php echo C('SOCKET_IO_URL');?>";

			document.addEventListener('UniAppJSBridgeReady', function()
			{
				uni.getEnv(function(res)
				{
					if (res.plus)//res.h5
					{
						isApp = true;

						if($('#login-trigger').length > 0)
						{
							document.querySelector('#login-trigger').addEventListener('click', function(e)
							{
								var target = e.target;

								uni.postMessage({
									data: {
										uid: $(target).data('value'),
										cid: $(target).data('c-value')
									}
								})
							});
						}
					}
				});
			});

		</script>

		<style type="text/css">

            body{background-color: #fafafa}

        </style>

	</head>

    <body>



<div class="feeldesk feeldesk-setting bgf" id="formWrapper">

    <header>

        <div class="menu-header">

            <a href="<?php echo U('setting/index',['system'=>$system]);?>" class="iconfont icon-back-left back"></a>

            <div class="header-title"><?php echo L('PERSONAL_M');?></div>

        </div>

    </header>

    <div class="feeldesk-main no-footer-main pd0">

        <div class="user-item">

            <div class="setting-inline">

                <div class="user-item-name"><?php echo L('PERSONAL_AVATAR');?></div>

                <div class="user-item-right">

                    <img src="<?php echo ((isset($mobile["face"]) && ($mobile["face"] !== ""))?($mobile["face"]):'/Attachs/face/face.png'); ?>" alt="" id="uploadLogoAndFace" data-value="face">

                    <form action="<?php echo U('userinfo');?>" id="imageForm">

                        <input type="hidden" name="member[face]" value="<?php echo ($mobile["face"]); ?>" id="image"/>

                        <input type="hidden" name="member[face_name]" value="<?php echo ($mobile["face_name"]); ?>" id="image-name"/>

                        <input type="hidden" name="member[face_url]" id="image-url"/>

                    </form>

                </div>

            </div>

        </div>

        <div class="clear"></div>

        <div class="user-item">

            <div class="setting-inline">

                <div class="user-item-name"><?php echo L('ACCOUNT');?></div>

                <div class="user-item-right blue078"><?php echo ($mobile["account"]); ?></div>

            </div>

        </div>

        <div class="clear"></div>

        <div class="user-item to-windows" data-title="<?php echo L('MODIFY_NAME');?>" data-name="name" data-value="<?php echo ($mobile["name"]); ?>">

            <div class="setting-inline">

                <div class="user-item-name"><?php echo L('NAME');?></div>

                <div class="user-item-right"><span><?php echo ($mobile["name"]); ?></span> <i class="iconfont icon-back-right"></i></div>

            </div>

        </div>

        <div class="clear"></div>

        <div class="user-item to-windows" data-title="<?php echo L('MODIFY_NICKNAME');?>" data-name="nickname" data-value="<?php echo ((isset($mobile["nickname"]) && ($mobile["nickname"] !== ""))?($mobile["nickname"]):''); ?>">

            <div class="setting-inline">

                <div class="user-item-name"><?php echo L('NICKNAME');?></div>

                <div class="user-item-right"><span><?php echo ($mobile["nickname"]); ?></span> <i class="iconfont icon-back-right"></i></div>

            </div>

        </div>

        <div class="clear"></div>

        <div class="user-item to-windows" data-title="<?php echo L('MODIFY_MOBILE');?>" data-name="mobile" data-value="<?php echo ((isset($mobile["mobile"]) && ($mobile["mobile"] !== ""))?($mobile["mobile"]):''); ?>">

            <div class="setting-inline">

                <div class="user-item-name"><?php echo L('MOBILE');?></div>

                <div class="user-item-right"><span><?php echo ($mobile["mobile"]); ?></span> <i class="iconfont icon-back-right"></i></div>

            </div>

        </div>

        <div class="clear"></div>

        <div class="user-item to-windows" data-title="<?php echo L('MODIFY_EMAIL');?>" data-name="email" data-value="<?php echo ((isset($mobile["email"]) && ($mobile["email"] !== ""))?($mobile["email"]):''); ?>">

            <div class="setting-inline border-none">

                <div class="user-item-name">E-mail</div>

                <div class="user-item-right"><span><?php echo ($mobile["email"]); ?></span> <i class="iconfont icon-back-right"></i></div>

            </div>

        </div>

    </div>

</div>

<div class="feeldesk" id="userWrapper">

    <header>

        <div class="menu-header">

            <a href="javascript:" class="iconfont icon-back-left back" id="userBack"></a>

            <div class="header-title" id="windowTitle"></div>

        </div>

    </header>

    <div class="feeldesk-main no-footer-main user-main">

        <form id="feeldeskForm">

            <div class="user-form-item">

                <input type="text" class="user-input" id="user-input"/>

            </div>

            <a href="javascript:" class="user-submit" id="submitForm"><?php echo L('SAVE');?></a>

        </form>

    </div>

</div>